<%  
	AdministratorDTO adminDTO = (AdministratorDTO)session.getAttribute("administrator");
    if (adminDTO == null) {
    	response.sendRedirect(response.encodeURL("index.jsp"));
        return;
    }
%>
<jsp:include page="header.jsp" />
<%@page import="java.util.*,ftn.dto.*"%>
<title>Admin</title>
<LINK rel="stylesheet" type="text/css" href="/ftn/css/style.css">
<LINK rel="stylesheet" type="text/css" href="/ftn/css/theme.css">
</head>

<body>
	<table width="1024" border="0">
    	<tr align="left"> 
      		<td width="260" rowspan="3" valign="top"> 
          		<div id="box_240"> 
		        <div id="jobs_green"></div>
        		<div id="content"> 		
	          		<span class="homeLink"> 
						<a href="../control/PrepareCreateOdsekController">Dodaj odsek</a><br />
					</span>	
	            </div>
      		    <div id="footer"></div>
          		</div>

				<jsp:include page="menu.jsp"/>
          	</td>
          	
			<!-- end of menu part -->                		
			<td width="740" height="21" valign="top">       
				<div id="box_460">
				<div id="inbox_green"></div>
				<div id="content">       
		 			<form action="../control/UpdateAdministratorDataController" method="post"><br>
				      <table border="0" cellpadding="3" cellspacing="0" align="center">
        		        <tr> 
                		  <td> <b>Korisnicko ime:</b> </td>
		                  <td> <input name="korisnickoIme" type="text" class="textfield" size="30" value="<%=adminDTO.getKorisnickoIme() %>"> 
        		          </td>
                		</tr>                
		                <tr> 
        		          <td> <b>Lozinka:</b> </td>
                		  <td> <input name="lozinka" type="password" class="textfield" size="30" value="<%=adminDTO.getLozinka() %>"> 
	        	          </td>
    		            </tr>
                		<tr> 
	        	          <td> <b>Ime:</b> </td>
    		              <td> <input name="ime" type="text" class="textfield" size="30" value="<%=adminDTO.getIme() %>"> 
    	    	          </td>
	            	    </tr>                
                		<tr> 
		                  <td> <b>Prezime:</b> </td>
	    	              <td> <input name="prezime" type="text" class="textfield" size="30" value="<%=adminDTO.getPrezime() %>"> 
        	        	  </td>
            		    </tr>     
		                <tr>           
        		          <td colspan="2"><center><input type="submit" class="submit" value="Izmeni"></center></td>
		                </tr>
		              </table>
					 </form>
		 		</div>
				<div id="footer"></div>	
				</div>
			</td>
		</tr>
	</table>
</body>
</html>